package cn.xny.txcc.feignclient;


import cn.xny.txcc.dto.CourseEsDto;
import cn.xny.txcc.fallback.SearchFallback;
import cn.xny.txcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",fallbackFactory = SearchFallback.class )
public interface SearchFeignClient {
    @PostMapping("/search/save")
    JSONResult save(@RequestBody CourseEsDto courseEsDto);
}
